package com.dmap.admin.bo.user;


import com.dmap.base.pojo.BasePojo;
import com.dmap.admin.po.AdminUser;

/**
 * \* User: silent
 * \* Date: 08/12/17 Time: 11:24
 * \* Description:
 * \
 */
public class UserInfo extends BasePojo {

    private String userId;

    private String account;

    private String roleId;

    private String roleName;

    private String password;
    private String nickname;
    private String headImageUrl;

    public UserInfo() {

    }

    public UserInfo(AdminUser adminUser) {
        this.userId = adminUser.getId().toString();
        this.account = adminUser.getAccount();
        this.password = adminUser.getPassword();
        this.roleId = adminUser.getRoleId().toString();
        this.nickname = adminUser.getNickname();
        this.headImageUrl = adminUser.getHeadImageUrl();
    }


    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getHeadImageUrl() {
        return headImageUrl;
    }

    public void setHeadImageUrl(String headImageUrl) {
        this.headImageUrl = headImageUrl;
    }
}
